#include <stdio.h>

int main() {
    char ch;
    scanf("%c", &ch);

    char pr, ne;

    if (ch >= 'a' && ch <= 'z') { 
        pr = (ch == 'a') ? 'z' : ch - 1;
        ne = (ch == 'z') ? 'a' : ch + 1;
    } else if (ch >= 'A' && ch <= 'Z') { 
        pr = (ch == 'A') ? 'Z' : ch - 1;
        ne = (ch == 'Z') ? 'A' : ch + 1;
    } else {
        return 1; 
    }

    printf("%c %d\n", pr, pr);
    printf("%c %d\n", ne, ne);

    return 0;
}
